package com.yikaiye.android.yikaiye.model;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * 产品详情
 */
public class ProductDesModel implements Parcelable {
    private String id;
    // 服务简介
    private String detail;
    // 常见问题
    private String problem;
    // 售后保障
    private String guarantee;

    protected ProductDesModel(Parcel in) {
        id = in.readString();
        detail = in.readString();
        problem = in.readString();
        guarantee = in.readString();
    }

    public static final Creator<ProductDesModel> CREATOR = new Creator<ProductDesModel>() {
        @Override
        public ProductDesModel createFromParcel(Parcel in) {
            return new ProductDesModel(in);
        }

        @Override
        public ProductDesModel[] newArray(int size) {
            return new ProductDesModel[size];
        }
    };

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    public String getProblem() {
        return problem;
    }

    public void setProblem(String problem) {
        this.problem = problem;
    }

    public String getGuarantee() {
        return guarantee;
    }

    public void setGuarantee(String guarantee) {
        this.guarantee = guarantee;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeString(id);
        parcel.writeString(detail);
        parcel.writeString(problem);
        parcel.writeString(guarantee);
    }
}
